package com.swingson.componentprocessor.impl;

import com.swingson.SwingsonGui;
import com.swingson.componentprocessor.BaseProcessor;
import com.swingson.jsonparser.JsonObject;
import com.swingson.layout.swingsonlayout.SwingsonLayout;
import javax.swing.JComponent;
import javax.swing.JPanel;
import net.miginfocom.swing.MigLayout;

public class JPanelProcessor extends BaseProcessor {

    @Override
    public JComponent createComponent(JsonObject jsonElement, JComponent parent, SwingsonGui gui) {
        JPanel panel = new JPanel();
        panel.setLayout(new MigLayout());
        return panel;
    }

    @Override
    public Class[] getProcessingClass() {
        return new Class[]{JPanel.class};
    }
}
